package com.manfred.ex02;

import java.io.File;
import java.net.URL;
import java.net.URLStreamHandler;

public class Constants {
	public static final String WEB_ROOT = System.getProperty("user.dir")
			+ File.separator + "webroot";

	public static void main(String[] args) throws Exception {
		System.out.println(WEB_ROOT);
		System.out.println(new File(WEB_ROOT).getCanonicalPath());
		URLStreamHandler handler = null;
		URL url = new URL("file", null, WEB_ROOT + File.separator);
		URL url2 = new URL(null, url.toString(), handler);
		System.out.println(url);
		System.out.println(url2);
	}
}
